package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.member.dto.HistoryDTO;
import com.enation.app.javashop.service.member.HistoryManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 会员历史足迹
 *
 * @author FK
 * @version v7.0
 * @date 19/7/30 下午8:10
 * @since v7.0
 */
@Api(description = "会员历史足迹")
@RestController
@RequestMapping("/client/member-history")
@Validated
@ApiIgnore
public class MemberHistoryClientController {

    @Autowired
    private HistoryManager historyManager;

    @PostMapping
    public void addMemberHistory(@RequestBody HistoryDTO historyDTO){
        historyManager.addMemberHistory(historyDTO);
    }

}
